﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace direct
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string[] lfile = Directory.GetFiles(@"C:\");
            string s="";
            for (int i = 0; i < lfile.Length; i++)
                s += "\n" + lfile[i];
            MessageBox.Show(s);

        }
    }
}
